# coding=utf-8

# 判断函数


def huiwen(instr):
    str_x = str(instr)
    str_y = ""
    for i in str_x:
        str_y = i + str_y
    return str_y == str_x


# 输入
instr = int(input("输入数字: "))
if huiwen(instr):
    print(instr, '是回文数字')
else:
    print(instr, '不是回文数字')
